<template>
  <renderColumn v-bind="column" />
</template>

<script setup lang="jsx" name="TableColumn">
defineProps({
  column: {
    type: Object,
    required: true
  }
});

const renderColumn = item => {
  return (
    <el-table-column {...item}>
      {{
        default: ({ row }) => {
          return item.render && item.render(row);
        }
      }}
    </el-table-column>
  );
};
</script>
